package com.ruoyi.domain.fileshare.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class ShareLog {

    public ShareLog() {
    }

    public ShareLog(Long fileId, String content, Long receiver, String operationType) {
        this.fileId = fileId;
        this.content = content;
        this.receiver = receiver;
        this.operationType = operationType;
    }

    private String id;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long fileId;

    private String content;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long receiver;

    private String createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String updateUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private Boolean isDeleted;

    private String operationType;

}